package co.th.bjc.md.run;

import java.math.BigDecimal;

import co.th.bjc.md.business.StockService;
import co.th.bjc.md.utils.BusinessUtils;

public class TestRunner {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		StockService stockBo = (StockService) BusinessUtils.getService("stockService");

		/** insert **/
//		Stock stock = new Stock();
//		stock.setStockCode("7669");
//		stock.setStockName("HAIO2");
//		stockBo.save(stock);

		/** select **/
//		Stock stock2 = stockBo.findByStockCode("7668");
//		System.out.println("" + stock2.getStockCode());
		
		try {
			stockBo.getRegion(new BigDecimal(1));
		} catch (Exception e) {
			e.printStackTrace();
		}


		System.out.println("Done");
	}

}
